Calc Field

The Calc Field manipulate step allows you to perform various math calculations. Calculating new data on the basis of existing data is a very common practice. The Calc Field algorithm supports a number of different functions:

  • Concat
  • Plus
  • Minus
  • Muliply
  • MakeIn
  • Reverse
  • PrefixWithLength
  • Divide

The Concat option is short for concatenate – to link together, connect one to another. This function allows you to connect the data located in two separate columns and place them together in a third column.

 

For example, your source data provides the first names and family names in separate columns, but the system you need to send this data to, only recognizes names as a single string consisting of "firstnamelastname". You can use the Manipulate Columns: Calc Field (Concat) option to perform this step:

 

The result will be as follows:

 

Column 1 Column 2 Target Column
Nir Sidi NirSidi
Joe Walsh JoeWalch

 

You can use the operators available to perform many other calculations using two columns as the data sources and place the result in the target column. Make sure that the data types match the mathematical operation and that the order in which you select the columns matches the result you are looking for.

 

To configure this manipulate step, follow the instructions below:

 

  1. In the Admin Navigation tree, select Interfaces > InterfaceName > Tasks > TaskName > Steps.
  2. On the toolbar, click New >New Manipulate Step.

Creating a New Manipulate Step

  1. Navigate to the Math section and select ABS.

Math Section

  1. In the Calc Field work area, fill in the following fields:

 

Fields Description

Name

Provide a distinctive name for this step.

Is Active

Select the check box to engage the scheduler for this step.

Order of Execution

Enter the order in which this step should be executed.

Filter Expression

Optional. Use this filed to filter data from the source database prior to inserting it into the Schema table.

Sort Expression

Optional. Use this field to sort data from the source database prior to inserting it into the Schema table.

Stop interface execution if query failed

Optional. If enabled, the system will stop any data manipulation if the query returns an error.

Save Schema (enabled per interface)

If selected, the schema is created for this step.

Column 1

Select the first source column that contains numeric values. This determines the order in which the data in two fields are calculated.

Column 2

Select the second source column that contains numeric values. This determines the order in which the data in two fields are calculated.

Operator

Select the operator from the list. The following operators are supported:

  • Concat
  • Plus
  • Minus
  • Muliply
  • MakeIn
  • Reverse
  • PrefixWithLength
  • Divide

Target Column

Select the target column where the result of the operation will be stored.

 

  1. Click the Save button.